<?php

namespace App\Repository;

use App\Entity\MoneyLog;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Repository\DocumentRepository;

/**
 * @method MoneyLog|null find($id, $lockMode = null, $lockVersion = null)
 * @method MoneyLog|null findOneBy(array $criteria, array $orderBy = null)
 * @method MoneyLog[]    findAll()
 * @method MoneyLog[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
 */
class MoneyLogRepository extends DocumentRepository
{
    public function __construct(DocumentManager $dm)
    {
        parent::__construct($dm, $dm->getUnitOfWork(),$dm->getClassMetadata(MoneyLog::class));
    }

}
